package Chapter01;

public class Car {
    //属性
    String appearance;//外观
    double price;//价格
    int consumption;//油耗

    //方法
    public void start(){
        System.out.println("车子已启动成功");
    }

    public void stop(){
        System.out.println("车子已停止");
    }

    public void whistle(){
        System.out.println("滴----");
    }
}
